/*
 * CheckLoginAdminBO
 * Version: 1.0
 * Date: 28/07/2014
 * 
 * Copyright: ThoNQ
 * 
 * Modification Logs:
 * DATE             AUTHOR              DESCRIPTION
 * ==================================================
 * 24/07/2014       ThoNQ               Create
 */

package model.bo;

import model.bean.Account;
import model.dao.CheckLoginAdminDAO;
import model.dao.ManageAccountDAO;

public class CheckLoginAdminBO {

    CheckLoginAdminDAO checkLoginAdminDAO = new CheckLoginAdminDAO();

    public  boolean isValid(String userName, String password) {
        return checkLoginAdminDAO.isValid(userName,password);
    }

	public Account getAccount(String userName) {
		ManageAccountDAO manageAccountDAO = new ManageAccountDAO();
		return manageAccountDAO.getAccount(userName);
	}
}
